﻿<Controls:SinacorWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
	x:Class="Sinacor.UI.Bovespa.Alocacao.View.SmartClient.InconsistenciaMensagemRecebida" 
    Title="{DynamicResource Bovespa.Alocacao.Label.InconsistenciasMensagensRecebidas}"
    WindowStartupLocation="CenterScreen"
    WindowState="Maximized" 
    ModulePlus="true" 
    ModuleId="ORD" >

    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Controls:SinacorExpanderContainer Width="Auto" Height="Auto">
            <Controls:SinacorExpanderContainer.RowDefinitions>
                <RowDefinition Height="*" />
            </Controls:SinacorExpanderContainer.RowDefinitions>
            <Controls:SinacorExpander x:Name="ExpInconsistenciasMensagensRecebidas"
                                      Grid.Row="0"
									  HorizontalAlignment="Stretch"
									  VerticalAlignment="Stretch"                                       
									  Header="{DynamicResource Bovespa.Alocacao.Label.InconsistenciasMensagensRecebidas}"
									  IsExpanded="True" 
									  AllowExpand="False">
                <Grid>
                    <Controls:SinacorCheckBox x:Name="CkbExibirAvisosNaoTrataveis"
                                              VerticalAlignment="Top" 
                		                      Content="{DynamicResource Bovespa.Alocacao.Label.ExibirAvisosNaoTrataveis}" 
                		                      Width="196"
                		                      TabIndex="1"
                                              IsChecked="{Binding Path=FiltroMensagemErroRecebida.ExibirAvisosNaoTrataveis}"
                                              Click="CkbExibirAvisosNaoTrataveis_Click" />
                    <Controls:SinacorDataGrid x:Name="DtgInconsistencias"
                		                      HorizontalAlignment="Stretch"
                                              VerticalAlignment="Stretch"
                                              AllowDelete="False"  
                                              RowEditMode="AllCells"
                                              ItemsSource="{Binding ListaMensagemErroRecebida}"
                		                      Width="Auto"
                		                      Margin="0,21,0,0"
                		                      TabIndex="2" >

                        <Controls:SinacorDataGrid.ContextMenuTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <Controls:SinacorContextMenuItem x:Name="ContextMenu_Acertar" Header="{DynamicResource Bovespa.Alocacao.Label.Acertar}" Click="ContextMenu_Acertar_Click" />
                                    <Controls:SinacorContextMenuItem x:Name="ContextMenu_Atualizar" Header="{DynamicResource Bovespa.Alocacao.Label.Atualizar}" Click="ContextMenu_Atualizar_Click"/>
                                </StackPanel>
                            </DataTemplate>
                        </Controls:SinacorDataGrid.ContextMenuTemplate>

                        <Controls:SinacorDataGrid.Columns>
                            <Controls:Column Name="DataReferencia" 										
            				                 Title="Bovespa.Alocacao.Label.DataRef" 
							                 HorizontalCellAlignment="Center"
                                             DisplayMemberPath="DataReferencia"
                                             AllowInsert="False"  
                                             AllowUpdate="False"/>
                            <Controls:Column Name="Sequencia" 										
                				             Title="Bovespa.Alocacao.Label.Sequencia"
                                             DisplayMemberPath="NumeroMensagem"
                                             AllowInsert="False"  
                                             AllowUpdate="False"/>
                            <Controls:Column Name="CodigoMensagem" 										
                				             Title="Bovespa.Alocacao.Label.CodMensagem"
                                             DisplayMemberPath="Codigo"
                                             AllowInsert="False"  
                                             AllowUpdate="False"/>
                            <Controls:Column Name="Inconsistencia" 										
                				             Title="Bovespa.Alocacao.Label.Inconsistencia"
                				             HorizontalCellAlignment="Left"
                                             DisplayMemberPath="Descricao"
                                             AllowInsert="False"  
                                             AllowUpdate="False"/>
                        </Controls:SinacorDataGrid.Columns>
                    </Controls:SinacorDataGrid>
                </Grid>
            </Controls:SinacorExpander>
        </Controls:SinacorExpanderContainer>
    </Grid>
</Controls:SinacorWindow>